<?php

class Social_Controller_Browse_Facebook_Auth
{

	function execute($request)
	{
		$adapter = Nuo::getObject('social/adapter/facebook');

		$clientApi = $adapter -> getClientApi();

		$loginUrl = $clientApi -> getLoginUrl(array(
			'scope' => 'email,user_about_me,user_birthday,user_hometown,user_interests,user_location,user_photos,user_website',
			'redirect_uri' => $adapter -> getCallbackUrl()
		));

		Nuo::redirect($loginUrl);
	}

}
